package com.ecoolex.hotel.saas.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class SalesUserWalletDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public SalesUserWalletDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public SalesUserWalletDetailExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public SalesUserWalletDetailExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        SalesUserWalletDetailExample example = new SalesUserWalletDetailExample();
        return example.createCriteria();
    }

    public SalesUserWalletDetailExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public SalesUserWalletDetailExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public SalesUserWalletDetailExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public SalesUserWalletDetailExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public SalesUserWalletDetailExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDetailIdIsNull() {
            addCriterion("salesuserwalletdetail.DetailId is null");
            return (Criteria) this;
        }

        public Criteria andDetailIdIsNotNull() {
            addCriterion("salesuserwalletdetail.DetailId is not null");
            return (Criteria) this;
        }

        public Criteria andDetailIdEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.DetailId =", value, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.DetailId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDetailIdNotEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.DetailId <>", value, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.DetailId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDetailIdGreaterThan(Integer value) {
            addCriterion("salesuserwalletdetail.DetailId >", value, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.DetailId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDetailIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.DetailId >=", value, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.DetailId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDetailIdLessThan(Integer value) {
            addCriterion("salesuserwalletdetail.DetailId <", value, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.DetailId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDetailIdLessThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.DetailId <=", value, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.DetailId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDetailIdIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.DetailId in", values, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdNotIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.DetailId not in", values, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.DetailId between", value1, value2, "detailId");
            return (Criteria) this;
        }

        public Criteria andDetailIdNotBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.DetailId not between", value1, value2, "detailId");
            return (Criteria) this;
        }

        public Criteria andWalletIdIsNull() {
            addCriterion("salesuserwalletdetail.WalletId is null");
            return (Criteria) this;
        }

        public Criteria andWalletIdIsNotNull() {
            addCriterion("salesuserwalletdetail.WalletId is not null");
            return (Criteria) this;
        }

        public Criteria andWalletIdEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.WalletId =", value, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.WalletId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWalletIdNotEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.WalletId <>", value, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.WalletId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWalletIdGreaterThan(Integer value) {
            addCriterion("salesuserwalletdetail.WalletId >", value, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.WalletId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWalletIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.WalletId >=", value, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.WalletId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWalletIdLessThan(Integer value) {
            addCriterion("salesuserwalletdetail.WalletId <", value, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.WalletId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWalletIdLessThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.WalletId <=", value, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.WalletId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWalletIdIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.WalletId in", values, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdNotIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.WalletId not in", values, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.WalletId between", value1, value2, "walletId");
            return (Criteria) this;
        }

        public Criteria andWalletIdNotBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.WalletId not between", value1, value2, "walletId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("salesuserwalletdetail.`Type` is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("salesuserwalletdetail.`Type` is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Type` =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Type` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Type` <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Type` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("salesuserwalletdetail.`Type` >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Type` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Type` >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Type` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("salesuserwalletdetail.`Type` <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Type` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Type` <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Type` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.`Type` in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.`Type` not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.`Type` between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.`Type` not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("salesuserwalletdetail.Amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("salesuserwalletdetail.Amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("salesuserwalletdetail.Amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Amount = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("salesuserwalletdetail.Amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Amount <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("salesuserwalletdetail.Amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Amount > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("salesuserwalletdetail.Amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Amount >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("salesuserwalletdetail.Amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Amount < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("salesuserwalletdetail.Amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Amount <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("salesuserwalletdetail.Amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("salesuserwalletdetail.Amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("salesuserwalletdetail.Amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("salesuserwalletdetail.Amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andSourceIsNull() {
            addCriterion("salesuserwalletdetail.`Source` is null");
            return (Criteria) this;
        }

        public Criteria andSourceIsNotNull() {
            addCriterion("salesuserwalletdetail.`Source` is not null");
            return (Criteria) this;
        }

        public Criteria andSourceEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Source` =", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Source` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceNotEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Source` <>", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Source` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThan(Integer value) {
            addCriterion("salesuserwalletdetail.`Source` >", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Source` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Source` >=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Source` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceLessThan(Integer value) {
            addCriterion("salesuserwalletdetail.`Source` <", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Source` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceLessThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.`Source` <=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`Source` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.`Source` in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.`Source` not in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.`Source` between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.`Source` not between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andSourceIdIsNull() {
            addCriterion("salesuserwalletdetail.SourceId is null");
            return (Criteria) this;
        }

        public Criteria andSourceIdIsNotNull() {
            addCriterion("salesuserwalletdetail.SourceId is not null");
            return (Criteria) this;
        }

        public Criteria andSourceIdEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.SourceId =", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.SourceId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceIdNotEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.SourceId <>", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.SourceId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceIdGreaterThan(Integer value) {
            addCriterion("salesuserwalletdetail.SourceId >", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.SourceId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.SourceId >=", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.SourceId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceIdLessThan(Integer value) {
            addCriterion("salesuserwalletdetail.SourceId <", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.SourceId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceIdLessThanOrEqualTo(Integer value) {
            addCriterion("salesuserwalletdetail.SourceId <=", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.SourceId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSourceIdIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.SourceId in", values, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdNotIn(List<Integer> values) {
            addCriterion("salesuserwalletdetail.SourceId not in", values, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.SourceId between", value1, value2, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("salesuserwalletdetail.SourceId not between", value1, value2, "sourceId");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionIsNull() {
            addCriterion("salesuserwalletdetail.BizDescription is null");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionIsNotNull() {
            addCriterion("salesuserwalletdetail.BizDescription is not null");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionEqualTo(String value) {
            addCriterion("salesuserwalletdetail.BizDescription =", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.BizDescription = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBizDescriptionNotEqualTo(String value) {
            addCriterion("salesuserwalletdetail.BizDescription <>", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.BizDescription <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBizDescriptionGreaterThan(String value) {
            addCriterion("salesuserwalletdetail.BizDescription >", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.BizDescription > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBizDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("salesuserwalletdetail.BizDescription >=", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.BizDescription >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBizDescriptionLessThan(String value) {
            addCriterion("salesuserwalletdetail.BizDescription <", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.BizDescription < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBizDescriptionLessThanOrEqualTo(String value) {
            addCriterion("salesuserwalletdetail.BizDescription <=", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.BizDescription <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBizDescriptionLike(String value) {
            addCriterion("salesuserwalletdetail.BizDescription like", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionNotLike(String value) {
            addCriterion("salesuserwalletdetail.BizDescription not like", value, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionIn(List<String> values) {
            addCriterion("salesuserwalletdetail.BizDescription in", values, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionNotIn(List<String> values) {
            addCriterion("salesuserwalletdetail.BizDescription not in", values, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionBetween(String value1, String value2) {
            addCriterion("salesuserwalletdetail.BizDescription between", value1, value2, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andBizDescriptionNotBetween(String value1, String value2) {
            addCriterion("salesuserwalletdetail.BizDescription not between", value1, value2, "bizDescription");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("salesuserwalletdetail.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("salesuserwalletdetail.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("salesuserwalletdetail.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("salesuserwalletdetail.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("salesuserwalletdetail.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("salesuserwalletdetail.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("salesuserwalletdetail.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("salesuserwalletdetail.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("salesuserwalletdetail.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("salesuserwalletdetail.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("salesuserwalletdetail.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("salesuserwalletdetail.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("salesuserwalletdetail.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("salesuserwalletdetail.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("salesuserwalletdetail.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("salesuserwalletdetail.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("salesuserwalletdetail.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("salesuserwalletdetail.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("salesuserwalletdetail.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("salesuserwalletdetail.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("salesuserwalletdetail.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("salesuserwalletdetail.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("salesuserwalletdetail.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("salesuserwalletdetail.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("salesuserwalletdetail.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("salesuserwalletdetail.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("salesuserwalletdetail.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("salesuserwalletdetail.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("salesuserwalletdetail.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("salesuserwalletdetail.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("salesuserwalletdetail.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("salesuserwalletdetail.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("salesuserwalletdetail.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("salesuserwalletdetail.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("salesuserwalletdetail.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("salesuserwalletdetail.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("salesuserwalletdetail.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("salesuserwalletdetail.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("salesuserwalletdetail.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(SalesUserWalletDetail.Column column) {
            addCriterion(new StringBuilder("salesuserwalletdetail.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("salesuserwalletdetail.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("salesuserwalletdetail.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("salesuserwalletdetail.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("salesuserwalletdetail.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private SalesUserWalletDetailExample example;

        protected Criteria(SalesUserWalletDetailExample example) {
            super();
            this.example = example;
        }

        public SalesUserWalletDetailExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(SalesUserWalletDetail.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(SalesUserWalletDetail.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.hotel.saas.entity.SalesUserWalletDetailExample example);
    }
}